<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{faGlTransBean.id}"/>
		<f:event type="preRenderView" listener="#{faGlTransBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Fa Gl Trans"/>

	<ui:define name="header">
		Fa Gl Trans
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty faGlTransBean.id}">
				Edit existing Fa Gl Trans
			</c:when>
			<c:otherwise>
				Create a new Fa Gl Trans
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="faGlTransBeanFaGlTransGlNo" value="Gl No:"/>
				<h:panelGroup>
					<h:inputText id="faGlTransBeanFaGlTransGlNo" required="true" value="#{faGlTransBean.faGlTrans.glNo}"/>
					<h:message for="faGlTransBeanFaGlTransGlNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="faGlTransBeanFaGlTransFaAccountCategory" value="Fa Account Category:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{faAccountCategoryBean.converter}" id="faGlTransBeanFaGlTransFaAccountCategory" value="#{faGlTransBean.faGlTrans.faAccountCategory}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faAccountCategoryBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="faGlTransBeanFaGlTransFaAccountCategory" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faGlTransBeanFaGlTransHrEmp" value="Hr Emp:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{hrEmpBean.converter}" id="faGlTransBeanFaGlTransHrEmp" value="#{faGlTransBean.faGlTrans.hrEmp}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="faGlTransBeanFaGlTransHrEmp" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faGlTransBeanFaGlTransFaJournal" value="Fa Journal:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{faJournalBean.converter}" id="faGlTransBeanFaGlTransFaJournal" value="#{faGlTransBean.faGlTrans.faJournal}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faJournalBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="faGlTransBeanFaGlTransFaJournal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faGlTransBeanFaGlTransFaChartOfAccount" value="Fa Chart Of Account:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{faChartOfAccountBean.converter}" id="faGlTransBeanFaGlTransFaChartOfAccount" value="#{faGlTransBean.faGlTrans.faChartOfAccount}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faChartOfAccountBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="faGlTransBeanFaGlTransFaChartOfAccount" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faGlTransBeanFaGlTransGlDtm" value="Gl Dtm:"/>
				<h:panelGroup>
					<h:inputText id="faGlTransBeanFaGlTransGlDtm" maxLength="19" value="#{faGlTransBean.faGlTrans.glDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="faGlTransBeanFaGlTransGlDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faGlTransBeanFaGlTransGlDescr" value="Gl Descr:"/>
				<h:panelGroup>
					<h:inputText id="faGlTransBeanFaGlTransGlDescr" maxLength="300" value="#{faGlTransBean.faGlTrans.glDescr}"/>
					<h:message for="faGlTransBeanFaGlTransGlDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faGlTransBeanFaGlTransGlDrAmt" value="Gl Dr Amt:"/>
				<h:panelGroup>
					<h:inputText id="faGlTransBeanFaGlTransGlDrAmt" required="true" value="#{faGlTransBean.faGlTrans.glDrAmt}"/>
					<h:message for="faGlTransBeanFaGlTransGlDrAmt" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="faGlTransBeanFaGlTransGlCrAmt" value="Gl Cr Amt:"/>
				<h:panelGroup>
					<h:inputText id="faGlTransBeanFaGlTransGlCrAmt" required="true" value="#{faGlTransBean.faGlTrans.glCrAmt}"/>
					<h:message for="faGlTransBeanFaGlTransGlCrAmt" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="faGlTransBeanFaGlTransGlStatusDrCr" value="Gl Status Dr Cr:"/>
				<h:panelGroup>
					<h:inputText id="faGlTransBeanFaGlTransGlStatusDrCr" required="true" value="#{faGlTransBean.faGlTrans.glStatusDrCr}"/>
					<h:message for="faGlTransBeanFaGlTransGlStatusDrCr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="faGlTransBeanFaGlTransGlStatusIsClose" value="Gl Status Is Close:"/>
				<h:panelGroup>
					<h:inputText id="faGlTransBeanFaGlTransGlStatusIsClose" required="true" value="#{faGlTransBean.faGlTrans.glStatusIsClose}"/>
					<h:message for="faGlTransBeanFaGlTransGlStatusIsClose" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="faGlTransBeanFaGlTransGlCreatedDtm" value="Gl Created Dtm:"/>
				<h:panelGroup>
					<h:inputText id="faGlTransBeanFaGlTransGlCreatedDtm" maxLength="19" value="#{faGlTransBean.faGlTrans.glCreatedDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="faGlTransBeanFaGlTransGlCreatedDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{faGlTransBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty faGlTransBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{faGlTransBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{faGlTransBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>